require "import"
import("android.view.accessibility.AccessibilityNodeInfo")

if node.packageName ~= "com.android.systemui" then
service.speak("nu sunteți într-o fereastră de notificări.")
return true
end
if node.className ~= "android.widget.FrameLayout" then
service.speak("Nu aveți nici o notificare focalizată")
return true
end
if node.performAction(AccessibilityNodeInfo.ACTION_DISMISS) then
service.appendSpeak("Notificare eliminată.")
else
service.speak("Nu puteți elimina notificarea")
end
return true